
<!DOCTYPE html>
<html>
<head>
	<title>segway discovery</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta name="viewport" content="width=device-width,user-scalable=yes" />
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="<?= $domain['static'] ?>css/common.css">
	<link rel="stylesheet" type="text/css" href="<?= $domain['static'] ?>css/pro_list.css">
	<link rel="stylesheet" type="text/css" href="<?= $domain['static'] ?>css/search.css"></head>
<body>
<?php
// 这里是包含子模板方法
$this->load->view('consumer/templates/header');
?>

	<div class="search_icon"></div>
	<!-- search -->


	<div class="search">


	
		<div class="search_m">
		<div class="tab_search">
		<span class="search_lx tab_search_cur"><?php echo lang('site_search_touroute');?></span>
			<span class="search_sj "><?php echo lang('site_search_merchant');?></span>
			

		</div>
		


			<div class="Country">
				<div class="Countryselect_box"><?php echo lang('site_select_none');?></div>
				<div class="Countrylist select_option">
					<p></p>
					<ul>
						
					</ul>
				</div>
			</div>
			<div class="City">
				<div class="Cityselect_box " data-id="0"><?php echo lang('site_select_none');?></div>
				<div class="Citylist select_option">
					<p></p>
					<ul>
						
					</ul>
				</div>
			</div>
			<div class="search_input">

				<input type="search" class="searchInput"></div>
			<div class="search_btn">
				<input type="submit" class="searchBtn" value="Go!"></div>
				<div class="Price ">Price</div>
				<div class="Duration ">Duration</div>

		</div>
	</div>


	<div class="search_pro">
		<div class="search_pro_m">
			<ul class="search_pro_list">
				
				


				<?php 
				
				foreach ($content["touroutes"]["data"] as $key => $value) { ?>
				

					<li>
						<a href="<?php echo site_url("touroute/detail/{$value["id"]}");?>">
							<div class="search_pro_img">
								<img src="<?php echo $value["cover"];?>?imageView2/2/w/365" alt=""></div>
							<div class="search_t">
								<h2 class="search_pro_title"><?php echo $value["name"];?></h2>
								<!-- <div class="book">Book</div> -->
							</div>
							<div class="search_pro_list_des">
								<p class="money"><img src="<?= $domain['static'] ?>images/money.jpg" alt=""><span><?php echo $value["retail_cny"];?></span></p>
								<p class="time"><img src="<?= $domain['static'] ?>images/time.jpg" alt=""><span><?php echo $value["is_official"];?></span></p>
								<p class="love"><img src="<?= $domain['static'] ?>images/love.jpg" alt=""></p>
								<p class="share"><img src="<?= $domain['static'] ?>images/share.jpg" alt=""></p>
							</div>
						</a>
					</li>


				<?php } ?>




		</ul>
<?php
$list = $content["touroutes"];
echo "<div class='pages'>";
for ($page = 1; $page <= $list['pages']['count']; $page ++) {
	if ($page == $list['pages']['page']) {
		$class = "pagescur";


	}else{
		$class = "";
	}
	$keyword = $this->input->get_post('keyword');
	$country = $this->input->get_post('country');
	$city = $this->input->get_post('city');
	printf("<span>%s</span>", anchor("/touroute/search/?keyword={$keyword}&country={$country}&city={$city}&page={$page}", $page,["class"=>$class]));
}


	printf("共 %d 条, 第 %d 页 / 共 %d 页, 每页 %d 条", $list['pages']['total'], $list['pages']['page'], $list['pages']['count'], $list['pages']['size']);
		
echo "</div>";
?>
		</div>
	</div>

	<!-- error or success -->
	<!-- error 预订和支付反馈-支付失败-->
	<div class="order_pay order_pay_error">
		<div class="order_pay_title">Booking failed</div>
		<div class="order_pay_con">
			You have not paid successfully, please go to your profile - Bookings, complete the reservation within 15 minutes, otherwise the order will be canceled automatically.
		</div>
		<div class="order_pay_btn">View</div>
	</div>
	<!-- success 预订和支付反馈-支付成功-->
	<div class="order_pay order_pay_success">
		<div class="order_pay_title">Booking success</div>
		<div class="order_pay_con">
			You have completed the order payment!
			<br>
			Produce vouchers to the merchant at the lease point.
			<br>Wish you to enjoy segway tour!</div>
		<div class="order_pay_btn">View</div>
	</div>
	
	<?php
	// 这里是包含子模板方法
	$this->load->view('consumer/templates/footer');
	?>
	<script type="text/javascript" src="<?= $domain['static'] ?>js/Validform_v5.1_min.js"></script>
	<script src="<?= $domain['static'] ?>js/cookie.js"></script> 
	<script type="text/javascript" src="<?= $domain['static'] ?>js/common.js"></script>
	<script type="text/javascript">
		var all = "<?php echo lang('site_select_none');?>"
	</script>
	<script type="text/javascript" src="<?= $domain['static'] ?>js/search.js"></script>
	<script type="text/javascript" src="<?= $domain['static'] ?>js/search_res.js"></script>
</body>
</html>